package cn.zysheep.factory.factory_method;

/**
 * @ClassName: Client
 * @Description: TODO(一句话描述该类的功能)
 * @Author: lyw
 * @Date: 2022/10/17 23:02
 */
public class Client {
    public static void main(String[] args) {
        CoffeeStore coffeeStore = new CoffeeStore();
        coffeeStore.setCoffeeFactory(new AmericanCoffeeFactory());
        Coffee coffee = coffeeStore.orderCoffee();
        System.out.println(coffee.getName());
    }
}
